<template>
    <div>
        新闻页面{{$route.params.id}}
        <button @click="toast">点击</button>
        <commit></commit>
    </div>
</template>
<script>
    import { Toast } from 'mint-ui';
    import commit from '../commit/commit.vue';
    export default {
        data(){
            return {
                id:''
            }
        },
        created(){
            console.log(this.$route)
        },
        methods:{
            toast(){
                Toast('弹框！！！')
            }
        },
        components:{
            commit
        }
    }
</script>